﻿using LogLib;
using Microsoft.Extensions.Configuration;
using System.Runtime.InteropServices;

namespace MainForms
{
    internal class AppService
    {
        private static AppService Instance;

        public static AppService Get()
        {
            if (Instance != null)
            {
                return Instance;
            }
            Instance = new ConfigurationBuilder()
                .AddIniFile(".\\AppConfig.ini")
                .Build()
                .Get<AppService>();
            return Instance;
        }


        public AppConfig Config { get; set; } = new AppConfig();

    }
}
